package giit.computerbase.util;

import giit.computerbase.server.LoginServer;

/**
 * User: tum0r
 * Package Name: giit.computerbase.util
 * Time: 2018/11/12 Monday 19:54:38
 */
public class TimeOutThread implements Runnable {
    private LoginServer loginServer = new LoginServer();
    private long time = 360000l;

    @Override
    public void run() {
        synchronized (this) {
            while (true) {
                loginServer.clearTimeOut(time);
                try {
                    Thread.sleep(time);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
